const express = require('express');
const router = express.Router();
const recheckRequestController = require('../controllers/recheckRequest.controller');
const { verifyToken, isTeacher } = require('../middlewares/auth.middleware');

// 获取考试列表路由 (需要教师权限)
router.get('/getExamList', verifyToken, isTeacher, recheckRequestController.getExamList);

// 获取考试班级学生信息路由 (需要教师权限)
router.get('/getStudentOfExam', verifyToken, isTeacher, recheckRequestController.getStudentOfExam);

// 发起查卷申请路由 (需要教师权限)
router.post('/launchRequest', verifyToken, isTeacher, recheckRequestController.launchRequest);

// 查看查卷结果路由 (需要教师权限)
router.get('/getRecheckResult', verifyToken, isTeacher, recheckRequestController.getRecheckResult);

module.exports = router;

